﻿using SqlSugar;
using Zhp.SqlSugar.Entity;

namespace Zhp.Entity.Chat
{
    [SugarTable("Chat_MessageRead")]
    public class ChatMessageRead : BaseEntity<ChatMessageRead, long>
    {
        /// <summary>
        /// 消息ID
        /// </summary>
        [SugarColumn(ColumnDataType = "bigint", IsNullable = false, ColumnDescription = "消息ID")]
        public long MsgId { get; set; }

        /// <summary>
        /// 阅读者
        /// </summary>
        [SugarColumn(ColumnDataType = "bigint", IsNullable = false, ColumnDescription = "阅读者")]
        public long UserId { get; set; }

        /// <summary>
        /// 阅读时间
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "阅读时间")]
        public DateTime? ReadTime { get; set; }
    }
}
